<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--<%request.setCharacterEncoding("UTF-8");%>--%>

<html>
<head>
<h2>Hello World!</h2>
</head>
<body>
<p>当前时间：<%= new java.util.Date() %></p>
<p>message：<%= request.getAttribute("message") %></p>
<form action="login" method="post" accept-charset="UTF-8">
    用户名：<input type="text" name="username"><br>
    密码：<input type="password" name="password"><br>
    <button type="submit">登录</button>
</form>

</body>

</html>
